package com.zlzsy.app.base.extends

import android.content.Context
import android.support.annotation.ColorInt
import android.support.annotation.ColorRes

/**
 * Created by niantuo on 2017/11/9.
 * activity 的扩展函数
 */
@ColorInt
fun Context.getColorBy(@ColorRes colorInt: Int): Int {
    return resources.getColor(colorInt)
}

